home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form ZSample
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BorderStyle = 3 'Fixed Dialog
- Caption = "ZipInf Sample"
- ClientHeight = 2685
- ClientLeft = 1530
- ClientTop = 2460
- ClientWidth = 7215
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 1
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 3375
- Left = 1470
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 2685
- ScaleWidth = 7215
- Top = 1830
- Width = 7335
- Begin VB.ListBox List1
- Appearance = 0 'Flat
- Height = 1980
- Left = 240
- Sorted = -1 'True
- TabIndex = 0
- Top = 480
- Width = 2055
- End
- Begin ZipinfLib.ZipInfo ZipInfo1
- Left = 1800
- Top = 0
- _version = 65539
- _extentx = 847
- _extenty = 847
- _stockprops = 64
- dateformat = "mm/dd/yy"
- filename = ""
- End
- Begin VB.Label ItemMethod
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 255
- Left = 4560
- TabIndex = 2
- Top = 1680
- Width = 2415
- End
- Begin VB.Label Label12
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "ItemMethod:"
- ForeColor = &H80000008&
- Height = 255
- Left = 2520
- TabIndex = 17
- Top = 1680
- Width = 1935
- End
- Begin VB.Label ItemTime
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 255
- Left = 4560
- TabIndex = 16
- Top = 1920
- Width = 2415
- End
- Begin VB.Label Label10
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "ItemTime:"
- ForeColor = &H80000008&
- Height = 255
- Left = 2520
- TabIndex = 15
- Top = 1920
- Width = 1935
- End
- Begin VB.Label ItemUncompressed
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 255
- Left = 4560
- TabIndex = 14
- Top = 2160
- Width = 2415
- End
- Begin VB.Label Label8
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "ItemUncompressed:"
- ForeColor = &H80000008&
- Height = 255
- Left = 2520
- TabIndex = 13
- Top = 2160
- Width = 1935
- End
- Begin VB.Label ItemDate
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 255
- Left = 4560
- TabIndex = 12
- Top = 960
- Width = 2415
- End
- Begin VB.Label Label7
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "ItemDate:"
- ForeColor = &H80000008&
- Height = 255
- Left = 2520
- TabIndex = 11
- Top = 960
- Width = 1935
- End
- Begin VB.Label ItemFileComment
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 255
- Left = 4560
- TabIndex = 10
- Top = 1200
- Width = 2415
- End
- Begin VB.Label Label5
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "ItemFileComment:"
- ForeColor = &H80000008&
- Height = 255
- Left = 2520
- TabIndex = 9
- Top = 1200
- Width = 1935
- End
- Begin VB.Label ItemCompressed
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 255
- Left = 4560
- TabIndex = 8
- Top = 480
- Width = 2415
- End
- Begin VB.Label Label3
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "ItemCompressed:"
- ForeColor = &H80000008&
- Height = 255
- Left = 2520
- TabIndex = 7
- Top = 480
- Width = 1935
- End
- Begin VB.Label ItemCRC
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 255
- Left = 4560
- TabIndex = 6
- Top = 720
- Width = 2415
- End
- Begin VB.Label Label4
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "ItemCRC:"
- ForeColor = &H80000008&
- Height = 255
- Left = 2520
- TabIndex = 5
- Top = 720
- Width = 1935
- End
- Begin VB.Label ItemFileName
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 255
- Left = 4560
- TabIndex = 4
- Top = 1440
- Width = 2415
- End
- Begin VB.Label Label2
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "ItemFileName:"
- ForeColor = &H80000008&
- Height = 255
- Left = 2520
- TabIndex = 3
- Top = 1440
- Width = 1935
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Files in ZIP:"
- ForeColor = &H80000008&
- Height = 255
- Left = 240
- TabIndex = 1
- Top = 240
- Width = 1215
- End
- Begin VB.Menu MenuFile
- Caption = "&File"
- Begin VB.Menu MenuFileOpen
- Caption = "&Open"
- Shortcut = ^O
- End
- Begin VB.Menu MenuFileExit
- Caption = "E&xit"
- End
- End
- Attribute VB_Name = "ZSample"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_Load()
- ZSample.Left = (Screen.Width - ZSample.Width) / 2
- ZSample.Top = (Screen.Height - ZSample.Height) / 2
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- End
- End Sub
- Private Sub List1_Click()
- Dim I As Integer
- If List1.ListIndex < 0 Then
- ItemCompressed = ""
- ItemCRC = ""
- ItemDate = ""
- ItemFileComment = ""
- ItemFileName = ""
- ItemMethod = ""
- ItemTime = ""
- ItemUncompressed = ""
- Else
- I = List1.ItemData(List1.ListIndex)
- ItemCompressed = Format$(ZipInfo1.ItemCompressed(I)) + " bytes"
- ItemCRC = Hex$(ZipInfo1.ItemCRC(I))
- ItemDate = ZipInfo1.ItemDate(I)
- ItemFileComment = ZipInfo1.ItemFileComment(I)
- ItemFileName = ZipInfo1.ItemFileName(I)
- Select Case ZipInfo1.ItemMethod(I)
- Case 0
- ItemMethod = "None"
- Case 1
- ItemMethod = "Shrunk"
- Case 2 - 5
- ItemMethod = "Reduced"
- Case 6
- ItemMethod = "Imploded"
- Case 7
- ItemMethod = "Tokenized"
- Case 8
- ItemMethod = "Deflated"
- Case Else
- ItemMethod = "Unknown"
- End Select
- ItemTime = ZipInfo1.ItemTime(I)
- ItemUncompressed = Format$(ZipInfo1.ItemUncompressed(I)) + " bytes"
- End If
- End Sub
- Private Sub MenuFileExit_Click()
- End
- End Sub
- Private Sub MenuFileOpen_Click()
- Dim I As Integer
- ZSample2.Show 1
- List1.Clear
- For I = 0 To ZipInfo1.ListCount - 1
- List1.AddItem ZipInfo1.ItemFileName(I)
- List1.ItemData(List1.NewIndex) = I
- Next I
- End Sub
-